/*
 *  YATUN  - Yet another tunneling application
 *
 *  Michal Demin - 2007
 *
 *  IO_Tun.h
 *
 */
 
#ifndef IO_TUN_h
#define IO_TUN_h

#include "c_Plug_IO.h"


class IO_Tun : public c_Plug_IO {
    private:
	char * If_name;
	int fd; 
	
    public:
	IO_Tun();
        IO_Tun(char * Ifname);
	virtual ~IO_Tun();
	
	virtual int Open();
	virtual int Close();
	virtual int Connect();
	virtual int Recieve(Packet *);
	virtual int Send(Packet *);    
	virtual int DataReady();
	virtual int GetFD();
	
	int SetBlocking(int);
};

#endif
